Unix system processes for sigterm, SIGUSR1, and SIGUSR2 signal processing
Vfhky | Time: 2015-08-05-17:41 | Category: CSeries
Long time no update blog, write an article in addition to weeding. This article focuses on a simple example of
①SIGINT terminates process interruption
ProgramThe interrupt signal is sent when you type the intr character (usually Ctrl-C.
②Sigquit creates a core file to terminate the process and generates a Core File
③Sigquit is similar to SIGINT, but it
All three are end/terminate process runs.1.SIGINT sigterm DifferenceThe former is associated with the character Ctrl + C, which does not have any control character associations.The former can only end the foreground process, while the latter is
Sigterm is a signal that a kill sends without parameters, meaning that the process terminates, but execution depends on whether the process is supported or not. But unlike Sigkill signals, it can be captured and interpreted (or ignored) by the
1. sigterm
"Kill PID" sends sigterm to the process PID.
This is the termination signal sent by killcommand by default.
2. SIGINT
Hitting the interrupt key (delete or Ctrl + C) in the terminal generates a SIGINT signal. This signal will be sent
Problem:
Rsync error: pinned ed SIGINT, sigterm, or sighup (Code 20) at rsync. C (503) [Cycler = 3.0.0pre7]-----------------------------Solution:Try adding the following line into "/etc/make. conf"
Code:
There is a host in the host cluster is always a reboot phenomenon, very frequent, almost 2 days a time. At first Cosbeta did not notice it, because the time of reboot is very short, may also cause the Web server to interrupt 10-30 seconds.
However,
Apache eats empty memory, frequent downtimeIn the deployment of a set of intranet test environment, frequent downtime, after the boot constantly eat memory, restart Apache after the memory consumption will continue to rise, until the swap runs out,
Rebuild the Hadoop cluster, when everything is ready, after starting the cluster, you can see through the JPS command on master and all the slave nodes that the process that the cluster should start has been started. You can also view all Datanode
A description of the problemAfter upgrading a Zabbix proxy from 2.4.5 to 3.0.2, it crashes directly.The error message is as follows:2367:20160508:153246.830 One child process died (pid:42385,exitcode/signal:11). Exiting ...42367:20160508:153248.904
In Python, because of the existence of the global interpreter lock Gil, the multithreading in Python does not significantly improve the efficiency of the program (in this case, CPU-intensive), then in the processing of CPU-intensive computing, multi-
In Python, because of the existence of the global interpreter lock Gil, the multithreading in Python does not significantly improve the efficiency of the program (in this case, CPU-intensive), then in the processing of CPU-intensive computing, multi-
Linux Server Development Preliminary
Chen Qin Yang
server development needs to consider a lot of things, such as server architecture, stability, performance and load capacity, and so on. In fact, in the process of developing a server,
the concept of a signal
Signal (signal)--the way communication between processes is a software interrupt. Once a process receives a signal, it interrupts the original program execution process to process the signal.
Several common signals:
SIGINT
The concept of the signal
Signal (signal)--the way communication between processes is a software outage. Once a process receives a signal, it interrupts the original program execution process to process the signal.
Several common signals:
SIGINT
The previous two articles discussed how to kill a child process when the process exited unexpectedly, this section we studied under using process pool multiprocessing. Pool, how to ensure that the main process quits unexpectedly, worker processes in
Http://yangjunwei.com/a/723.htmlAnalysis of LNMP frequent 502 bad gateway issues in the CentOS system 2012-01-28 Yang JunweiPost a comment(1)Recently the VPS always appear Nginx 502 bad Gateway error, cause the webpage cannot access normally, but
Let's just say what signal is. (If you want to use directly can not see)Signal translation comes in Chinese is the signal--Of course, in itself he is a very important concept in Linux system programming, signaling mechanism is a mechanism for
Objective
Today, in the Docker, we are able to easily package our applications with containers and deploy them on our servers and run them. However, talking about how to stop the Docker container in the running and terminate the program correctly
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.